#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
    int a = 0;
    scanf("%d", &a);
    if (a < 12)
    {
        printf("%d", 2);
    }
    else
    {
        int b = 0;
        b = a / 12;
        int c = 0;
        c = b * 4 + 2;
        printf("%d", c);
    }

    return 0;
}
